69 #if defined (COMPARATOR) 75 #define XMC_ACMP_INSTANCE_1 (1U) 82 void XMC_ACMP_Init(XMC_ACMP_t *
const peripheral, uint32_t instance,
const XMC_ACMP_CONFIG_t *
const config)
85 XMC_ASSERT(
"XMC_ACMP_Init:NULL Configuration", (config != (XMC_ACMP_CONFIG_t *)NULL))
86 XMC_ASSERT(
"XMC_ACMP_Init:Wrong module pointer", XMC_ACMP_CHECK_MODULE_PTR(peripheral))
87 XMC_ASSERT(
"XMC_ACMP_Init:Wrong instance number", XMC_ACMP_CHECK_INSTANCE(instance) )
95 (uint32_t)config->anacmp;
99 void XMC_ACMP_SetInput(XMC_ACMP_t *
const peripheral, uint32_t instance, XMC_ACMP_INP_SOURCE_t source)
101 XMC_ASSERT(
"XMC_ACMP_SetInput:Wrong module pointer", XMC_ACMP_CHECK_MODULE_PTR(peripheral))
102 XMC_ASSERT(
"XMC_ACMP_SetInput:Wrong instance number", ((instance != XMC_ACMP_INSTANCE_1) &&
103 XMC_ACMP_CHECK_INSTANCE(instance)) )
104 XMC_ASSERT(
"XMC_ACMP_SetInput:Wrong input source", ((source == XMC_ACMP_INP_SOURCE_STANDARD_PORT) ||
105 (source == XMC_ACMP_INP_SOURCE_ACMP1_INP_PORT)) )
#define COMPARATOR_ANACMP0_CMP_LPWR_Msk
#define XMC_ASSERT(msg, exp)
#define COMPARATOR_ANACMP0_ACMP0_SEL_Msk